package com.woniu.project.client;

import com.woniu.project.core.dto.ResultDto;
import com.woniu.project.params.assessparams.AssessConditionParams;
import com.woniu.project.params.assessparams.AssessParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = "assess-server")
public interface ProductEntityAssessClient {

    /**
     * 新增评估记录
     * @param assessParams 评估记录对象
     * @return
     */
    @PostMapping("/pawn/assess/assess/insertAssess")
    public ResultDto insertAssess(@Valid @RequestBody AssessParams assessParams);

    /**
     * 分页查询单个商品下的所有历史评估记录
     * @param assessConditionParams 查询条件参数对象
     * @return
     */
    @GetMapping("/pawn/assess/assess/selectAssessList")
    public ResultDto selectAssessList(@Valid @RequestBody AssessConditionParams assessConditionParams);


}
